<?php include_once ('function/check_login_function.php'); onlyValid();?>
<!DOCTYPE html>
<html>
<head>
	<title>Notifications</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="">
</head>
<body>
	<div id="wrap">
		<header>
		</header>
		<div id="main">
			<div id="menu">
			</div>
			<div id="content">
				<h1>Notification</h1>
				
				<ol>
				<?php
					$notification_list = $user->getNotificationList();
					if ($notification_list !== null) {
						foreach ($notification_list as $notification) {

							echo '<li>';
							echo $notification;
							echo '</li>';
						}
					} else {
						echo 'You have sent no notifications at this moment';
					}
				?>
				</ol>

	
			</div>
		</div>
		<footer>
			<div id="footer">
				
			</div>
		</footer>
	</div>
</body>